import request from '@/utils/request'

// 公域用户数统计信息
export function userCountInfo(data) {
  return request({
    url: '/business_admin/pubDomainUser/userCountInfo',
    method: 'post',
    data
  })
}
// 公域用户详情信息
export function pubDomainUserDetail(params) {
  return request({
    url: `/business_admin/pubDomainUser/getDetail`,
    method: 'get',
    params: params

  })
}
// 公域用户数统计信息
export function pubManageUserlist(data) {
  return request({
    url: '/business_admin/pubDomainUser/pubManageUserlist',
    method: 'post',
    data
  })
}

// 获取用户余额统计信息
export function balanceStatistics(data) {
  return request({
    url: '/business_admin/balance/account/balanceStatistics',
    method: 'post',
    data
  })
}

// 公域用户余额记录列表
export function getBalanceRecord(data) {
  return request({
    url: '/business_admin/balance/record/getPlatformBalanceRecord',
    method: 'post',
    data
  })
}

// // 公域用户数统计信息
// export function pubManageUserlist(data) {
//   return request({
//     url: '/business_admin/pubDomainUser/pubManageUserlist',
//     method: 'post',
//     data
//   })
// }

// 公域商户列表
export function pubDomainBusinessList(data) {
  return request({
    url: '/business_admin/pubDomainBusiness/list',
    method: 'post',
    data
  })
}
// 获取商户主营业务列表
export function getIndustry(data) {
  return request({
    url: '/business_admin/pubDomainBusiness/getIndustry',
    method: 'get',
    data
  })
}

// 获取商户详情
export function getDetail(params) {
  return request({
    url: `/business_admin/pubDomainBusiness/getDetail`,
    method: 'get',
    params: params

  })
}

// 获取商户营业执照
export function getFHBShopCertificates(params) {
  return request({
    url: `/business_admin/pubDomainShop/getFHBShopCertificates`,
    method: 'get',
    params: params

  })
}


//  获取订单列表
export function orderList(data) {
  return request({
    url: '/mall/pub/platform/order/list',
    method: 'post',
    data
  })
}
//  获取订单详情
export function orderDetail(params) {
  return request({
    url: '/mall/pub/platform/order/order_detail',
    method: 'get',
    params: params
  })
}

//  获取推荐门店列表
export function getConfigList(data) {
  return request({
    url: '/business_admin/recommendShopConfig/getConfig',
    method: 'post',
    data
  })
}

//  切换推荐门店状态
export function updateShopStatus(data) {
  return request({
    url: '/business_admin/recommendShopConfig/updateStatus',
    method: 'get',
    params:data
  })
}

//  删除推荐门店
export function deletedConfigShop(data) {
  return request({
    url: '/business_admin/recommendShopConfig/deleted',
    method: 'post',
    data
  })
}
//  新增推荐门店
export function addConfigShop(data) {
  return request({
    url: '/business_admin/recommendShopConfig/add',
    method: 'post',
    data
  })
}

//  查询推荐门店
export function searchBusiness(data) {
  return request({
    url: '/business_admin/recommendShopConfig/searchBusiness',
    method: 'get',
    params:data
  })
}
//  查询商户下所有门店
export function getShops(data) {
  return request({
    url: '/business_admin/pubDomainShop/getShops',
    method: 'get',
    params:data
  })
}

export function getWiFiRecordList(data) {
  return request({
    url: '/wifi_admin/record/list',
    method: 'post',
    data
  })
}

export function export_wifi_operate_Record(data) {
  return request({
    url: '/statistics_admin/task/export_wifi_operate_Record',
    method: 'post',
    data
  })
}


